package com.settlement.system.mapper;

import com.settlement.system.model.entity.common.TblWpVendorConfig;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 唯品会商户配置 Mapper 接口
 * @author Ximi
 * @since 2020-04-15
 */
public interface TblWpVendorConfigMapper extends BaseMapper {

    /**
     * 获取商户编码
     * @param shopNos 店铺编码
     * @return
     */
    List<String> getVendorCodes(@Param("shopNos") List<String> shopNos);

    List<String> getAllShopNos();

    /**
     * 获取商户信息
     * @param supplierNo
     * @return
     */
    TblWpVendorConfig getWpVendorByCode(@Param("supplierNo") String supplierNo);

    String getVendorCodeByBillNumber(@Param("billNumber") String billNumber);

    String getVendorCodeFromBillNumber(@Param("billNumber") String billNumber);

    void updateStatus(@Param("params") TblWpVendorConfig params);
}

